package com.guomei.bean.exam.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 考试题目表实体类
 */
@Data
public class ExamQuestion {
    /**
     * 题目ID
     */
    private Long id;

    /**
     * 考试ID
     */
    private Long examId;

    /**
     * 题目类型(1-单选题,2-多选题,3-判断题,4-主观题)
     */
    private Short questionType;

    /**
     * 题目内容
     */
    private String questionContent;

    /**
     * 选项(JSON格式,客观题使用)
     */
    private String options;

    /**
     * 正确答案
     */
    private String correctAnswer;

    /**
     * 分值
     */
    private Integer score;

    /**
     * 排序
     */
    private Integer sortOrder;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createdTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updatedTime;

    //分页大小
    private Integer pageSize;

    //页数
    private Integer pageNum;
}
